package com.xju.atpgs.service;

import com.xju.atpgs.entity.Exam;
import com.xju.atpgs.entity.ExamRequest;
import com.xju.atpgs.entity.Question;
import com.xju.atpgs.entity.ResultExam;
import com.xju.atpgs.generator.Paper;

import java.io.FileNotFoundException;
import java.util.List;

public interface ExamService {
    String autoGenerator(ExamRequest examRequest) throws FileNotFoundException;
    List<Question> getExamQuestion(String type,int number);
    String manualGenerator(String[] data,ExamRequest examRequest);
    List<ResultExam> examManager();
    List<Exam> findByStatus(String type);
    void insertExam(Exam exam);
    List<Exam> findAll();
    Paper geneticAlgorithmGenerator(ExamRequest examRequest);
}
